package com.ruoyi.ai.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Kimi API 配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "ai.kimi")
public class KimiConfig {
    /**
     * API Key
     */
    private String apiKey;

    /**
     * API 基础地址
     */
    private String baseUrl = "https://api.moonshot.cn/v1";

    /**
     * 模型名称
     */
    private String model = "moonshot-v1-8k";

    /**
     * 温度参数
     */
    private Double temperature = 0.7;

    /**
     * 最大 tokens
     */
    private Integer maxTokens = 2000;

    /**
     * 流式输出
     */
    private Boolean stream = true;
}